<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
    <div class="top">
        <div class="left"></div>
        <div class="right"></div>
        <div class="center">
            <h1><?php echo $heading_title; ?></h1>
        </div>
    </div>
    <div class="middle">
        <?php if ($orders) { ?>
        <?php foreach ($orders as $order) { ?>
        <div style="display: inline-block; margin-bottom: 10px; width: 100%;">
            <div style="width: 49%; float: left; margin-bottom: 2px;"><b><?php echo $text_order_id; ?></b> #<?php echo $order['order_id']; ?></div>
            <div style="width: 49%; float: right; margin-bottom: 2px; text-align: right;"><b><?php echo $text_status; ?></b> <?php echo $order['status']; ?></div>
            <div style="clear: both; padding: 5px;" class="content">
                <div style="padding: 5px;">
                    <table width="100%">
                        <tbody><tr>
                            <td><?php echo $text_date_added; ?> <?php echo $order['date_added']; ?></td>
                            <td><?php echo $text_customer; ?> <?php echo $order['name']; ?></td>
                            <td style="text-align: right;" rowspan="2"><a class="button" href="<?php echo $order['href']; ?>"><span><?php echo $button_view; ?></span></a></td>
                        </tr>
                        <tr>
                            <td><?php echo $text_products; ?><?php echo $order['products']; ?></td>
                            <td><?php echo $text_total; ?><?php echo $order['total']; ?></td>
                        </tr>
                        </tbody></table>
                </div>
            </div>
        </div>
        <?php } ?>
        <div class="pagination"><div class="results"><?php echo $pagination; ?></div></div>
        <?php } else { ?>
        <div class="content"><?php echo $text_empty; ?></div>
        <?php } ?>
        <div class="buttons">
            <table>
                <tbody><tr>
                    <td align="right"><a class="button" href="<?php echo $continue; ?>"><span><?php echo $button_continue; ?></span></a></td>
                </tr>
                </tbody></table>
        </div>
    </div>

  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>